
#include"ThreadPool.hpp"
#include"Task.hpp"
#include<memory>

using namespace ThreadPoolModel;

int main()
{
    ENABLECONSOLELOG();
    std::unique_ptr<ThreadPool<task_t>> tp = std::make_unique<ThreadPool<task_t>>();
    tp->Start();

    int cnt = 10;
    while (cnt)
    {
        tp->Enqueue(push);
        cnt--;
        sleep(1);
    }

    // tp->Stop();

    tp->Wait();
    return 0;
}